import 'package:school_assistant/generated/json/base/json_convert_content.dart';
import 'package:school_assistant/data/order_list_entity.dart';

OrderListEntity $OrderListEntityFromJson(Map<String, dynamic> json) {
	final OrderListEntity orderListEntity = OrderListEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		orderListEntity.id = id;
	}
	final String? number = jsonConvert.convert<String>(json['number']);
	if (number != null) {
		orderListEntity.number = number;
	}
	final String? product = jsonConvert.convert<String>(json['product']);
	if (product != null) {
		orderListEntity.product = product;
	}
	final String? user = jsonConvert.convert<String>(json['user']);
	if (user != null) {
		orderListEntity.user = user;
	}
	final String? extra = jsonConvert.convert<String>(json['extra']);
	if (extra != null) {
		orderListEntity.extra = extra;
	}
	return orderListEntity;
}

Map<String, dynamic> $OrderListEntityToJson(OrderListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['number'] = entity.number;
	data['product'] = entity.product;
	data['user'] = entity.user;
	data['extra'] = entity.extra;
	return data;
}